/* 筛选面板样式 */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
  animation: overlayFadeIn 0.3s ease-out;
}

.filterPanel {
  background: linear-gradient(135deg, rgba(0, 20, 40, 0.95) 0%, rgba(0, 40, 80, 0.95) 100%);
  border: 2px solid #00ffff;
  border-radius: 15px;
  padding: 30px;
  width: 500px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 
    0 0 30px rgba(0, 255, 255, 0.5),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
  animation: panelSlideIn 0.4s ease-out;
  color: #ffffff;
  font-family: 'Microsoft YaHei', sans-serif;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.title {
  font-size: 22px;
  font-weight: bold;
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.titleIcon {
  font-size: 24px;
  animation: iconPulse 2s ease-in-out infinite;
}

.closeButton {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid #ff0000;
  color: #ff0000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.closeButton:hover {
  background: rgba(255, 0, 0, 0.2);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filterGroup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.label {
  font-size: 14px;
  color: #00ffff;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}

.labelIcon {
  font-size: 16px;
  animation: iconFloat 3s ease-in-out infinite;
}

.select {
  background: rgba(0, 20, 40, 0.8);
  border: 1px solid #00ffff;
  color: #ffffff;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 5px rgba(0, 255, 255, 0.2);
}

.select:hover {
  border-color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
  transform: translateY(-2px);
}

.select:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

.select option {
  background: rgba(0, 20, 40, 0.95);
  color: #ffffff;
  padding: 8px;
}

.dateRange {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dateInput {
  background: rgba(0, 20, 40, 0.8);
  border: 1px solid #00ffff;
  color: #ffffff;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 5px rgba(0, 255, 255, 0.2);
  flex: 1;
}

.dateInput:hover {
  border-color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
  transform: translateY(-2px);
}

.dateInput:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

.dateSeparator {
  color: #00ffff;
  font-weight: bold;
  font-size: 14px;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.filterInfo {
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 8px;
  padding: 15px;
  margin-top: 10px;
}

.infoItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.infoItem:last-child {
  margin-bottom: 0;
}

.infoLabel {
  color: #cccccc;
  font-size: 12px;
}

.infoValue {
  color: #00ffff;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.actions {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 255, 255, 0.3);
}

.resetButton {
  background: rgba(255, 165, 0, 0.1);
  border: 1px solid #ff8800;
  color: #ff8800;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.resetButton:hover {
  background: rgba(255, 165, 0, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(255, 136, 0, 0.4);
}

.applyButton {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid #00ff00;
  color: #00ff00;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.applyButton:hover {
  background: rgba(0, 255, 0, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.buttonIcon {
  font-size: 14px;
  animation: iconSpin 2s linear infinite;
}

.resetButton:hover .buttonIcon {
  animation-play-state: paused;
}

.applyButton:hover .buttonIcon {
  animation-play-state: paused;
}

/* 自定义滚动条 */
.filterPanel::-webkit-scrollbar {
  width: 8px;
}

.filterPanel::-webkit-scrollbar-track {
  background: rgba(0, 20, 40, 0.5);
  border-radius: 4px;
}

.filterPanel::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #00ffff 0%, #0080ff 100%);
  border-radius: 4px;
}

.filterPanel::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #00cccc 0%, #0066cc 100%);
}

/* 动画关键帧 */
@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes panelSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes iconSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .filterPanel {
    width: 95vw;
    padding: 20px;
  }
  
  .title {
    font-size: 18px;
  }
  
  .dateRange {
    flex-direction: column;
    gap: 5px;
  }
  
  .dateSeparator {
    display: none;
  }
  
  .actions {
    flex-direction: column;
    gap: 10px;
  }
} 